package com.chang.bootplus.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.chang.bootplus.base.database.EntityBase;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author NING
 * @since 2022-01-25
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("matrix_order")
@ApiModel(value = "MatrixOrder对象", description = "")
public class MatrixOrder extends EntityBase {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("订单编号")
    private String orderId;

    @ApiModelProperty("其他信息")
    private String message;

    @ApiModelProperty("商家是否发货")
    private Integer deliverStatus;

    @ApiModelProperty("是否被支付")
    private Integer payStatus;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("商家id")
    private Long busId;

    @ApiModelProperty("商品总价")
    private BigDecimal amount;

    @ApiModelProperty("支付时间")
    @JsonFormat(timezone = "GMT+8", shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime payTime;

    @ApiModelProperty("发货时间")
    @JsonFormat(timezone = "GMT+8", shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime deliverTime;

    @ApiModelProperty("收货时间")
    @JsonFormat(timezone = "GMT+8", shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime receiveTime;

    @ApiModelProperty("是否收货 默认0为没收货")
    private Integer receiveStatus;

    @ApiModelProperty("买家地址id")
    private Long userLocationId;

    @ApiModelProperty("卖家地址id")
    private Long busLocationId;


}
